<?php
namespace App\DTOS\Admin;
use App\DTOS\BaseDTO;
// 游戏公告
class AnnouncementSearchDTO extends BaseDTO
{
    // 标题
    private $title;
    // 内容
    private $content;
    // 开始时间
    private $begin_time;
    // 结束时间
    private $end_time;

    private $status; //1=生效, 否则不生效 $begin_time <=now() && now <=$end_time

    private $serverGroup;

    /**
     * @return mixed
     */
    public function getServerGroup()
    {
        return $this->serverGroup;
    }

    /**
     * @param mixed $serverGroup
     * @return AnnouncementSearchDTO
     */
    public function setServerGroup($serverGroup)
    {
        $this->serverGroup = $serverGroup;
        return $this;
    }


    /**
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @param mixed $status
     */
    public function setStatus($status): void
    {
        $this->status = $status;
    }


    public function setTitle($value){
        $this->title = $value;
    }
    public function getTitle(){
        return $this->title;
    }
    public function setContent($value){
        $this->content = $value;
    }
    public function getContent(){
        return $this->content;
    }
    public function setBeginTime($value){
        $this->begin_time = $value;
    }
    public function getBeginTime(){
        return $this->begin_time;
    }
    public function setEndTime($value){
        $this->end_time = $value;
    }
    public function getEndTime(){
        return $this->end_time;
    }
}

